package com.example.robertluozizhao.framecollectdemo.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.view.View;

import com.example.robertluozizhao.framecollectdemo.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author luo_zi_zhao
 * @version V1.0 相机api 使用
 * @FileName com.example.robertluozizhao.framecollectdemo.activity
 * @date 2020/3/13 17:06
 */

public class CameraSimpleUsageActivity extends Activity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_camera_simple_usage);
        ButterKnife.bind(this);
    }

    @Override
    protected void onResume() {
        super.onResume();

    }

    @OnClick({R.id.btn_camera1, R.id.btn_camera2})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_camera1:
                startActivity(CameraApi1Activity.class);
                break;
            case R.id.btn_camera2:

                break;
        }
    }

    private void startActivity(Class clazz) {
        Intent intent = new Intent(this, clazz);
        startActivity(intent);
    }




}
